package com.education.wisdom.controller.app;

import com.education.common.core.BaseController;
import com.education.wisdom.pojo.Iosdic;
import com.education.wisdom.service.IIosdicService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * IOS金额字典 信息操作处理
 *
 * @author ruoyi
 * @date 2019-08-09
 */
@Controller
@RequestMapping("/appIosdic")
public class AppIosdicController extends BaseController {
    @Autowired
    private IIosdicService iosdicService;

    /**
     * 查询苹果达人币充值选择列表
     *
     * @param response
     * @param iosdic
     * @throws Exception
     */
    @GetMapping("/list")
    @ResponseBody
    public void listByUserId(HttpServletResponse response, Iosdic iosdic) throws Exception {

        List<Iosdic> list = iosdicService.selectIosdicList(iosdic);
        writeJSON(new PageInfo<Iosdic>(list), response, "200", "成功");

    }

}
